import 'dart:convert';

import 'package:enterprise_v6_app/app/data/entities/double_control/get_user_by_id_entity.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/emergency_department_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/emergency_department_entity.g.dart';

@JsonSerializable()
class EmergencyDepartmentEntity {
  EmergencyDepartmentEntity();

  factory EmergencyDepartmentEntity.fromJson(Map<String, dynamic> json) => $EmergencyDepartmentEntityFromJson(json);
  late String businessId = '';
  late List<EmergencyDepartmentEntity> children = [];
  late List<GetUserByIdEntity> userList = [];
  late String createBy = '';
  late String createById = '';
  late String createDate = '';
  late String deleted = '';
  late String emergencyDescribe = '';
  late String function = '';
  late String id = '';
  late String path = '';
  late String pid = '';
  late String updateBy = '';
  late String updateById = '';
  late String updateDate = '';

  /// 是否展开
  late bool isExpand = false;

  Map<String, dynamic> toJson() => $EmergencyDepartmentEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
